const state = {
  user: {
    userName: '测试'
  },
  token: ''
};
const getters = {};
const actions = {};
const mutations = {
  SET_USERINFO: (state, userInfo) => {
    state.userInfo = userInfo;
  },
  SET_TOKEN: (state, token) => {
    state.token = token;
  }
};

export default {
  namespace: true,
  state,
  getters,
  actions,
  mutations
};
